package com.example.lol;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.example.lol.R;


public class SettingActivity extends AppCompatActivity {

    ImageView quitBtn;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);

        quitBtn = findViewById(R.id.img_nav_back_btn);

        quitBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(com.example.lol.SettingActivity.this, "退出成功", Toast.LENGTH_SHORT).show();
                Intent intent =new Intent();
                intent.setClass(com.example.lol.SettingActivity.this,lolActivity.class);

                startActivity(intent);

            }
        });
    }
}